Q 2-5 Quiz: Python Functions and Probability Distributions Use the link in the Jupyter Notebook activity to access your Python script. Once you have made your calculations, complete this discussion. The script will output answers to the questions given below. You must attach your Python script output as an HTML file and respond to the questions below.In this discussion, you will apply the central limit theorem and use principles of the Normal distribution to calculate probabilities. You will demonstrate two key parts of the central limit theorem: The distribution of sample means is approximately Normally distributed (bell-shaped) as the sample size increases and we repeatedly draw these samples, regardless of the shape of the population distribution from which the samples are drawn. The average of all sample means is equal to the population mean. In practice, the average of all sample means will closely approximate the population mean. You will generate a population data set representing total precipitation (TPCP) in tenths of a millimeter using Python’s numpy module. The distribution of this data set will be skewed. This data set will be unique to each student, and therefore the answers will be unique as well. Run Step 1 in the Python script to generate your unique population data. In your initial post, address the following items: In the Python script, you created a histogram for the dataset generated in Step 1. Check to make sure that this data distribution is skewed and included in your attachment. See Step 2 in the Python script. What is the mean of the TPCP population data? See Step 3 in the Python script. In the Python script, you selected a random sample with replacement, of size 50 (note that this is a sufficiently large sample), from the TPCP population. What is the mean of your random sample? Does this sample mean closely approximate the TPCP population mean? See Step 4 in the Python script. You also selected 1,000 random samples of size 50 and calculated the mean of each sample. Then you stored those means into a dataframe. Check to make sure the output of this step is in your attachment. See Step 5 in the Python script. Review the plotted data distribution for these 1,000 means. Does this approximate a Normal distribution? Does this confirm the first part of the central limit theorem? Why or why not? See Step 6 in the Python script. What is the “grand” mean and standard deviation of these 1,000 means? Does the grand mean closely approximate (on a relative basis) the mean of the original distribution? Does this confirm the second part of the central limit theorem? Why or why not? See Step 7 in the Python script. Recall that your distribution of 1,000 means is Normally distributed even though the population distribution was skewed and the grand mean closely approximates the population mean. In your follow-up posts to other students, review your peers' results and provide some analysis and interpretation. Is their population distribution skewed? Is their distribution of 1,000 sample means approximately Normally distributed? Does this confirm the first part of the central limit theorem? Why or why not? Does their grand mean closely approximate their population mean? Does this confirm the second part of the central limit theorem? Why or why not? Based on this discussion activity, what have you learned about the central limit theorem? Remember to attach your Python output and respond to all questions in your initial and follow-up posts. Be sure to clearly communicate your ideas using appropriate terminology. Finally, be sure to review the Discussion Rubric to understand how you will be graded on this assignment. 2-5 Quiz: Python Functions and Probability Distributions Quiz You have completed the quiz To apply the statistical concepts you have learned, you will also need to build on your knowledge of the Python scripting language gained from previous courses. In this way, you can apply the mathematical concepts by performing statistical tests using Python functions. This quiz will assess your understanding of the Python scripts discussed in this module, as well as your ability to use probability distributions. Note: There are symbols used in Python scripts in the problems and answers for this test. If you are using a screen reader, adjust your verbosity settings to properly read these symbols. To begin this quiz, click on the quiz title to review a summary of details related to this activity regarding number of attempts, time limit, and how your grade will be calculated.
View Related Questions